package edu.snake.implement.view;

import edu.snake.core.model.Character;
import edu.snake.core.model.Position;
import edu.snake.implement.ConfigConstant;

import javax.swing.ImageIcon;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;


public class EmptyCellRender {

    public EmptyCellRender() {
    }


    public void render(Position position, Character character, Graphics g) {

        draw(position, null, g);

    }

    private void draw(Position position, Image image, Graphics g) {
        int cellSizePixel = ConfigConstant.cellSizePixel;

        g.fillRect(
                position.getWidth() * cellSizePixel
                , position.getHeight() * cellSizePixel
                , cellSizePixel
                , cellSizePixel
        );
        g.setColor(Color.LIGHT_GRAY);
        g.drawRect(
                position.getWidth() * cellSizePixel
                , position.getHeight() * cellSizePixel
                , cellSizePixel
                , cellSizePixel
        );
    }
}